<template>
	<!-- 发票下载完后新增/编辑收款明细 -->
	<view>
		<account-table type="afterDown" :idList="accIdList"></account-table>
		<!-- 新增 / 修改 -->
		<add-or-update ref="addOrUpdateRef" @refreshDataList="getDataList"></add-or-update>
	</view>
</template>

<script setup lang="ts">
import { useCrud } from '@/hooks'
import { reactive, ref } from 'vue'
import AddOrUpdate from './account-or-update.vue'
import AccountTable from './account-table.vue'
import { IHooksOptions } from '@/hooks/interface'
import { useRouter } from 'vue-router'
import store from '@/store'

const router = useRouter()

const idList = router.currentRoute.value.query.idList;
if(idList){
	store.commonStore?.setIdList(idList);
}
const accIdList = store.commonStore.accIdList;

const addOrUpdateRef = ref()
const addOrUpdateHandle = (id?: Number) => {
	addOrUpdateRef.value.init(id)
}

</script>
